<?php

class Jd_task_model extends MY_Model {





    public function __construct()
    {
        $this->modelename='Jd_task_model';
        $this->tablename='task';
        parent::__construct();
    }


    /**
     *
     * 商户添加任务
     * @param array $array
     * @return INT
     */
    public function  addtask($array=array()){
        $array['business_id']=$this->userId;
        $array['addtime']=time();
        $array['status']=0;
       return  $r= $this->add($this->tablename,$array);

    }




}
